﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Weazel.Willows.Model
{
	class SignedType : BasicType
	{
		public SignedType(TypeRegistry registry)
			: base(registry, "signed")
		{
			// intentionally left empty
		}

		public override void Resolve()
		{
			// intentionally left empty
		}

		public override int BitWidth
		{
			get { return 1; }
		}

		public override bool IsSimpleType
		{
			get { return true;  }
		}
	}

	class UnsignedType : BasicType
	{
		public UnsignedType(TypeRegistry registry)
			: base(registry, "unsigned")
		{
			// intentionally left empty
		}

		public override void Resolve()
		{
			// intentionally left empty
		}

		public override int BitWidth
		{
			get { return 1; }
		}

		public override bool IsSimpleType
		{
			get { return true; }
		}
	}
}
